//
// Created by lovep on 2025/3/14.
//

#ifndef ARRAY_H
#define ARRAY_H

#include <defination.h>

typedef struct {
    ElemType *elem;
    int length;
    int listsize;
} SqList;

Status SqList_Init(SqList &L);

Status SqList_Print(SqList &L);

Status SqList_Insert(SqList &L, int i, ElemType x);

Status SqList_Delete(SqList &L, int i, ElemType &e);

int SqList_Search(SqList L, ElemType e);

Status SqList_Combine(SqList L1, SqList L2, SqList &L);

Status SqList_Sort(SqList &L);

Status SqList_Duplicate(SqList &L);


#endif
